home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Do It! 2
/
Do It! Volume 2.iso
/
programs
/
autopeg2.0
/
autopeg.install
< prev
next >
Wrap
Text File
|
1996-07-16
|
2KB
|
98 lines
; AutoPEG.Install
; Install AutoPEG and AutoPEG.exe to HardDisk
; Copyright © 1995 John Corigliano
; $VER: AutoPEG.Install 2.0 (06.10.95)
(set vernum (getversion "dos.library" (resident)))
(set ver (/ vernum 65536))
(set rev (- vernum (* ver 65536)))
(if (< ver 37)
(abort ("\nYou have WorkBench %ld.%ld\nAutoPEG needs v37+" ver rev))
)
(set this_cpu (database "cpu"))
(if (OR (= "68000" this_cpu) (= "68010" this_cpu))
(abort "\nYou do not have a 68020+.\nSorry, but AutoPEG requires\na 68020 or better.")
)
(set @dest-dir "Sys:Utilities")
(set new_name
(askdir
(prompt "Where do you want to put AutoPEG?")
(help @askdir-help)
(default "Sys:Utilities")
)
)
(set @default-dest new_name)
(copyfiles
(prompt ("Copying AutoPEG to %s" new_name))
(help @copyfiles-help)
(source "AutoPEG")
(dest new_name)
(infos)
(optional "force")
)
(set hdir
(askdir
(prompt "Where do you want to put AutoPEG.guide?")
(help @askdir-help)
(default new_name)
)
)
(copyfiles
(prompt ("Copying AutoPEG.guide to %s" hdir))
(help @copyfiles-help)
(source "AutoPEG.guide")
(dest hdir)
(infos)
(optional "force")
)
(set pdir
(askdir
(prompt "Where do you want to put APPrefs?\n(The preferences program).")
(help @askdir-help)
(default "Sys:Prefs")
)
)
(copyfiles
(prompt ("Copying APPrefs to %s" pdir))
(help @copyfiles-help)
(source "APPrefs")
(dest pdir)
(infos)
(optional "force")
)
(copyfiles
(prompt "Copying autopeg.prefs to s:")
(help @copyfiles-help)
(source "autopeg.prefs")
(dest "S:")
(optional "force")
)
(copyfiles
(prompt "Copying AutoPEG.exe to C:")
(help @copyfiles-help)
(source "AutoPEG.exe")
(dest "C:")
(optional "force")
)
(set ex_msg "Install complete.\n\
PLEASE read AutoPEG.guide to\n\
learn how to configure AutoPEG!\n\
If not configured properly,\n\
AutoPEG won't work!!!")
(exit ex_msg)